<template>
	<!-- 证件详情 -->
	<view class="content">
		<!-- 证件 begin -->
		<view class="content-item documents-detail">
			<image src="/static/img/home/documents.png"></image>
			<view class="detail">
				<view class="integral">积分&nbsp;&nbsp;100</view>
				<view class="ranking">排名&nbsp;&nbsp;100</view>
			</view>
		</view>
		<!-- 证件 end -->
		<!-- 其他 begin -->
		<view class="content-item other">
			<view class="row">
				<view class="grid">
					<image src="/static/img/home/submit.png"></image>
					<view class="title">已提交</view>
					<view class="count">28</view>
				</view>
				<view class="grid">
					<image src="/static/img/home/nullify.png"></image>
					<view class="title">已作废</view>
					<view class="count">28</view>
				</view>
				<view class="grid">
					<image src="/static/img/home/register.png"></image>
					<view class="title">已立案</view>
					<view class="count">28</view>
				</view>
				<view class="grid">
					<image src="/static/img/home/feedback.png"></image>
					<view class="title">已反馈</view>
					<view class="count">28</view>
				</view>
			</view>
		</view>
		<!-- 其他 end -->
		<!-- 建议管理 begin -->
		<view class="content-item advise-list">
			<view class="header">
				<view class="title">建议管理</view>
			</view>
			<view class="row">
				<view class="grid">
					<image src="/static/img/home/service-1.png"></image>
					<view class="title">最新建议</view>
				</view>
				<view class="grid">
					<image src="/static/img/home/service-2.png"></image>
					<view class="title">我发起的</view>
				</view>
				<view class="grid">
					<image src="/static/img/home/service-3.png"></image>
					<view class="title">我联名的</view>
				</view>
				<view class="grid">
					<image src="/static/img/home/service-4.png"></image>
					<view class="title">提出建议</view>
				</view>
				<view class="grid">
					<image src="/static/img/home/service-9.png"></image>
					<view class="title">本届建议</view>
				</view>
			</view>
		</view>
		<!-- 建议管理 end -->
		<!-- 调研问卷 begin -->
		<view class="content-item advise-list">
			<view class="header">
				<view class="title">调研问卷</view>
			</view>
			<view class="row">
				<view class="grid">
					<image src="/static/img/home/tick-red.png"></image>
					<view class="title">待参与</view>
				</view>
				<view class="grid">
					<image src="/static/img/home/tick-blue.png"></image>
					<view class="title">以参与</view>
				</view>
			</view>
		</view>
		<!-- 调研问卷 end -->
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		onLoad() {},
		methods: {}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 20rpx;
	}

	.documents-detail {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		background-color: $bg-color-white;
		border-radius: $border-radius-lg;

		image {
			width: 100%;
			height: 400rpx;
			border-radius: $border-radius-lg;
		}

		.detail {
			display: flex;
			justify-content: space-around;
			align-items: center;
			width: 100%;
			margin: 20rpx 0;
		}
	}

	.content-item {
		width: 100%;


		.header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 20rpx;

			.title {
				font-size: $font-size-lg;
				font-weight: 500;
			}

			.subtitle {
				font-size: $font-size-base;
				color: $text-color-grey;
			}
		}

		.row {
			display: flex;
			flex-wrap: wrap;

			.grid {
				// width: 50%;
				display: flex;
				// flex-direction: column;
				align-items: center;
				// padding: 20rpx;

				.title {
					font-size: $font-size-base;
					display: flex;
					align-items: baseline;
				}
			}
		}
	}

	.other {
		background-color: $bg-color-white;
		border-radius: $border-radius-lg;

		.row {
			display: flex !important;
			flex-wrap: wrap !important;
			align-items: flex-start !important;
			align-content: flex-start !important;
			justify-content: space-around !important;
			padding: 10rpx;

			.grid {
				justify-content: space-between;
				width: 46%;
				padding: 20rpx;
				margin: 10rpx 0;
				border-radius: $border-radius-lg;

				image {
					width: 40rpx;
					height: 40rpx;
					border-radius: $border-radius-lg;
				}

				.title {
					margin-left: -50rpx;
					font-size: 28rpx;
				}

				.count {
					font-size: 32rpx;
				}
			}

			.grid:nth-child(odd) {
				color: #e66611 !important;
				background: linear-gradient(to right, #fcecdb, #f7d1b7);
			}

			.grid:nth-child(even) {
				color: #d81d06 !important;
				background: linear-gradient(to right, #f7d1b7, #f4bfb7);
			}
		}
	}

	.advise-list {

		.row {
			display: flex !important;
			flex-wrap: wrap !important;
			align-items: flex-start !important;
			align-content: flex-start !important;
			justify-content: space-between !important;
			padding: 10rpx;

			.grid {
				background: #fff;
				// justify-content: space-between;
				width: 48%;
				padding: 20rpx;
				margin: 10rpx 0;
				border-radius: $border-radius-lg;

				image {
					width: 70rpx;
					height: 70rpx;
					border-radius: $border-radius-lg;
				}

				.title {
					margin-left: 20rpx;
				}
			}
		}
	}
</style>